// FIXME 用的老样式，表单规范确定后治理
.teamix-layout-section-title-row + .setting-card-item {
  padding-top: 0;
}
.save-btn {
  padding-bottom: 20px;
}
.setting-card {
  margin-bottom: 20px;

  &-item {
    &:first-child {
      padding-top: 0;
    }
    &:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }
  }
  &-subtitle {
    line-height: 20px;
    font-size: 14px;
    color: var(--form-label-color, #575757);
    &-desc {
      margin-top: 4px;
      line-height: 20px;
      font-size: var(--form-help-font-size, 12px);
      color: var(--color-fill1-6, #8b8b8b);
      font-weight: normal;
      white-space: normal;
    }
  }
  &-action {
    margin-top: 8px;
  }

  // 使用Tab作为title时，hack样式
  &-tab-title {
    .next-card-body {
      padding: 0;
    }
    .next-tabs-bar {
      border-bottom: 1px solid $gray-03;
      padding: 0 20px;
    }
    .next-tabs-tabpane {
      padding: 0 20px;
    }
    .next-tabs-nav-extra {
      padding-right: 20px;
    }
  }

  &-section {
    &-header {
      text-align: left;
      line-height: 20px;
      font-weight: 500;
      font-size: 14px;
      color: $gray-08;
      margin-bottom: 16px;
    }

    &-body {
      border: 1px solid $gray-03;
      border-radius: 5px;
      padding: 10px 0 10px 20px;
      margin-bottom: 20px;
    }
  }

  // 库设置页面和组设置页面，保存按钮吸底
  &.org-setting-fix-height {
    .next-card-body {
      padding: 0;
      .settings-repos-form {
        max-height: calc(100vh - 210px);
        overflow: auto;
        margin-top: 20px;
        margin-left: 20px;
        padding-right: 20px;
        .setting-card-section-body:last-child {
          margin-bottom: 0;
        }
      }
      .save-btn {
        padding: 20px;
      }
    }
  }

  &.no-card {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    &.org-setting-fix-height {
      .settings-repos-form {
        margin-left: 0;
        margin-top: 0;
      }
      .next-card-body {
        padding: 20px 0 0;
      }
      .save-btn {
        padding: 20px;
        padding-bottom: 0;
      }
    }
    .next-card-head {
      padding: 0;
      border: none;
      &-main {
        margin-top: 0;
        margin-bottom: 0;
      }
      .next-card-title {
        font-size: 18px;
        line-height: 24px;
        font-weight: 500;
        vertical-align: middle;
      }
    }
    .next-card-body {
      padding: 20px 0;
    }
    &.setting-card-tab-title .next-card-body {
      padding-top: 8px;
    }
    // 此处修正顶部距离，防止后面设计变化
    .risk-section {
      margin-top: 0;
    }
    .sensitive-monitor-page .risk-section {
      margin-top: 20px;
    }
    .report-switch {
      margin-top: 0;
    }

    .next-tabs-bar {
      border-bottom: 1px solid $gray-03;
      padding: 0 20px;
    }
  }
}
